<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>
           分类添加
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link href="__PUBLIC__/skin/nei.css" type="text/css" rel="stylesheet">
    </head>
</head>
<body onLoad="initPage()">
<div id="LoadingBar"><img src="__PUBLIC__/images/load.gif" /></div>
<div class="d_contaiter">
<form class="layui-form layui-form-pane" action="__ROOT__/admin/category/editsmall/" method="post" enctype="multipart/form-data">
  <div class="layui-form-item">
    <label class="layui-form-label">产品名称</label>
    <div class="layui-input-block">
      <input type="hidden" name="cid" value="{$data.cid}">
      <input type="hidden" name="id" value="{$data.id}">
      <input type="text" name="name" value="{$data.name}" lay-verify="required" autocomplete="off" placeholder="请输入分类名称" class="layui-input" >
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">分类排序</label>
    <div class="layui-input-block">
      <input type="text" name="vieworder" value="{$data.vieworder}" lay-verify="required" autocomplete="off" placeholder="请输入分类排序" class="layui-input" maxlength="30">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">替代值</label>
    <div class="layui-input-block">
      <input type="text" name="tidai" value="{$data.tidai}" autocomplete="off" placeholder="0-2000" class="layui-input" maxlength="30">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">分类图标</label>
     <div class="layui-input-block">
     <div class="file-box">
     <i class="layui-icon">&#xe61f;</i>
     <input class="file-btn" type="button" value="选择正方形图片">
     <input class="file-txt" type="text" name="imgtext" id="imgtext" value="{$data.imgpath}">
     <input class="file-file" type="file" name="imgpath" size="28" onchange="" />
     </div>
     </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">内页广告</label>
     <div class="layui-input-block">
     <div class="file-box">
     <i class="layui-icon">&#xe61f;</i>
     <input class="file-btn" type="button" value="选择图片750*300px">
     <input class="file-txt" type="text" name="imgtext2" id="imgtext2" value="{$data.imgpath2}">
     <input class="file-file" type="file" name="imgpath2" size="28" onchange="" />
     </div>
     </div>
  </div>
  <div class="layui-form-item">
    <button class="layui-btn layui-btn-green" lay-submit="" lay-filter="go">提交保存</button>
  </div>
</form>
</div>
<script src="__PUBLIC__/js/jquery-1.10.2.min.js" type="application/javascript"></script>
<script src="__PUBLIC__/js/neijqtab.js" type="application/javascript"></script>
<script src="__PUBLIC__/js/xlayui/layui.js" charset="utf-8"></script>
<script>
function initPage(){
	var objLoading = document.getElementById("LoadingBar");
	if (objLoading != null){
		objLoading.style.display = "none";
		$(".d_contaiter").css("display","block");
	}
}
</script>
</body>
</html>